add more tests for window::shift and handle boundary cases#386
Merged
alamb merged 3 commits intoapache:masterfrom Jun 3, 2021
Merged
add more tests for window::shift and handle boundary cases#386alamb merged 3 commits intoapache:masterfrom
alamb merged 3 commits intoapache:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #386 +/- ##
==========================================
+ Coverage 82.62% 82.64% +0.01%
==========================================
Files 162 162
Lines 44275 44310 +35
==========================================
+ Hits 36582 36618 +36
+ Misses 7693 7692 -1 ☔ View full report in Codecov by Sentry. |
efa5781 to
a5a70ff
Compare
nevi-me
reviewed
Jun 2, 2021
arrow/src/compute/kernels/window.rs
Outdated
Member
Author
There was a problem hiding this comment.
i guess it's not that easy - there's no easy way to clone array and likely suboptimal than just taking a slice here
nevi-me
approved these changes
Jun 2, 2021
Contributor
nevi-me
left a comment
There was a problem hiding this comment.
One minor comment, LGTM otherwise
64defcc to
daf1655
Compare
alamb
reviewed
Jun 3, 2021
| /// let expected: Int32Array = vec![None, Some(4), None].into(); | ||
| /// assert_eq!(res.as_ref(), &expected); | ||
| /// | ||
| /// // shift array 0 element, although not recommended |
Contributor
|
FWIW I could not cherry-pick this automatically to If we want to include it we will have to backport it manually |
alamb
pushed a commit
that referenced
this pull request
Jun 8, 2021
* add more doc test for window::shift * handle i64::MIN first * use Ok(make_array(array.data_ref().clone()))
Contributor
|
Second chance back porting has worked #429 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #387.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?